let the iterator return the number of visited items during the iteration
bugfixes: ensure removing/updating root nodes on binheap_delete()