RepositoryObjectSerializer produces appropriate output.