Copy, equals and hash for Array and Dictionary.