Added new function to hash any PostgreSQL data type. Also added corresponding regression tests.