Fixed generation problem for Enumeration types.