[Olena-patches] milena r1393: Add iterator for branches