Fix cache creation for arrays

Model caches were incorrectly sharing the same object references
with instance values.
Correctly clone relation data.
Fix broken test.
Merge pull request #105 from Battlefy/fix/bad-cache-references-arrays

Fix cache creation for arrays