3.0 hash optimize

Copying some recent changes done by our [alter-framework from a parallel universe](https://github.com/titon/utility/tree/master/src/Titon/Utility). This improves the processing time of some functions in `Hash` by 11%