function setHashKey(obj, h) {
  if (h) {
    obj.$$hashKey = h;
  } else {
    delete obj.$$hashKey;
  }
}
Set or clear the hashkey for an object.
@param obj object
@param h the hashkey (!truthy to delete the hashkey)