hash keys of indices must not depend on the index dimension; doing so breaks