implement immhash_of same as immarray_of