Fixed serious bug that made the RDB query generator fail to apply
slicing in count operations.
Now the memory session does no longer attempt to clone objects loaded
from other repositories.
Raising a ValueError when a resource attribute that is being converted
to an entity attribute can not be found.