fixes to iterator and insertNonLeaf