Fixed small bug in generated Enums when converting from numeric representation.