Allows the creation of double dispatch based serializers