correct issue with passing serializer_class with has_one

Fixes https://github.com/rails-api/active_model_serializers/issues/442