Serializer 0.12

uses #382 as a basis