Fix detection of labels with a typedef name