BUG: fix collections.Hashable behaviour for numpy arrays.
Merge pull request #5326 from cournape/fix_hashable_collections

BUG: fix collections.Hashable behaviour for numpy arrays.