fixes non-unique hashcode issue for discrete HOG cells; other misc updates