Make HashMap work for const(shared()) key types.