Check for duplicate labels during parsing
Merge pull request #537 from pauldraper/parse-labels

Fix exception thrown during RenameLabels for bad labels; report an error instead.