Fix bug when hashing array

Fixes issue #103.