Fixed part of the generation of enumeration errors
Enumerations are now being referenced properly in the generation of the code.
Testing fix.