Add serialization methods for structs, enums and SerDes helpers, implement imports for cleaning Go output.