More robust iterator for Set.