Allow permissive deserialization of all enums

When deserializing enum types, we should allow:

  * Whitespace in the value, which should be stripped out for parsing.
  * Lower-case characters, which should be converted to upper-case.

This makes using enum type in Configuration files more permissive and less confusing.