Merging serializers and deserializers