pop_internal never returns None
optimize HashMap internals with iterators
hashmap: update tests