Serialize/deserialize enum entries in enum classes