Default `serialize` implementation (Fix #358)
Merge pull request #365 from SBoudrias/serialize

Default `serialize` implementation (Fix #358)