Attempt to recreate rails-api/active_model_serializers#456.