Add Encodable/Decodable support for enums