Initial draft of serializer contracts; tweak deserializers (issue #15)