Misc improvements.

* Changed loadAssociation to Repository->resolveProperty() which now return the property value.
* Simplified protection against cloning Entities
* Allow reading and setting the query for RepositoryCollection
* Reusing a Placeholder is now an allowed usage