Hash Codes

Done as a partial fix for the most serious cases in Issue #37.

Also includes some unit test updates for `UtilTest`.