[WIP] Add serializer interface

Targets #151
The transaction is already an array. So I guess we can just remove the inheritance and then we're fine here?