Changed all entities to return and set associations in exchangeArray and getArrayCopy