RST: more robust deptree to RST conversion

Should now be more robust wrt order that we get the dependency nodes.
We ensure that our traversal of these nodes is from the inside-out
textually.