JSON Deserialization error with Optional Enums

Workaround for issue #55