Check for duplicate labels during parsing