fix bug when using arrays of models as the keys of a hash
another test, and better semantics
Merge pull request #643 from Shopify/fix_model_arrays_as_hash_keys

Fix using arrays as hash keys