made CollectionProxy and EntityProxy json serializable