[Olena-patches] milena r3622: Add tree iterator regardless the way of traversal