Avoid an unnecessary allocation in `TaggedHash`