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