hashtable: add common hashtable hash/equals functions for pointer/string keys