isl_hash_{space,space_domain}: extract out shared parameter hashing