more feedback addressed. thanks, huon and cgaebel
hashmap: fix capacity overflow