Added hash and equality of arrays.

This is needed to allow structured keys in hashes.