Constify more hash functions