Add support for serializting enums