serializeHasMany in JSONSerializer does not serialize manyToOne relationships.

The serializer did serialize manyToNone and manyToMany relationships.
There is nothing to do in a manyToNone relationship.
ManyToOne relationships weren't handled so I changed manyToNone into manyToOne.