Fix error when serializing CollectionItems (oPersistent) that have references to other ORM objects.