Precompute and store the hash for operators that use GroupByHash or have hash partitioned output

We are going to need to code generate this.  When we added Types, generating this block fixed a big performance regression.