Serializers and deserializers for the Wikibase DataModel