Fix serialization of project relationships