Fix Betamax.register_serializer and add tests