Add support for JSONSerializer.attrs.serialize for relationships

Currently, the `attrs.serialize` property does not work for `hasMany` and `belongsTo` relationships, so relationships are always serialized.

This PR supports the `serialize` property on relationships.
Ah I missed that thanks :)