enable equality impl for hashmap constructor
remove build warning