Added enum types to generator
Implemented generation of Serialize/Deeserialize