optimize Set / Map iterators, ref iterators