Fixed the enum deserialization when the value is not a field (such as enums in containers)