parser: Only validate EnumerationTypes when requested This has quadratic behavior and is only a validity constraint.