Restore the old API that allow classes to specify their serializers.