Implement tabulation hashing for integral types and refactor hash
related files. Fixes #87.