Preallocate correct size for hash in `Hash.zip` (#17054)