iter_trees generator to walk through trees in order regardless of nexson variant