fix equals for hashmap template