Add support for enum classes.

Enum classes will be handled as string properties with a list of allowed
values.