Added function that can hash any Postgres data type. Also added corresponding regression tests.