[FIX]Fix maketoc & toc results through multi-print'ing the whole structure, at least for the case when there is just one level of children for all pages. Patch taken from http://dev.tiki.org/item5405 . Thanks larryg. Other cases still requiring a fix (see bug report & comments). To be backported to 12.x after other cases are hopefully fixed also (maybe this patch can be easily improved by someone else with more skills than me).

git-svn-id: file:///var/local/code.tiki.org/tikisvn/trunk@52327 b456876b-0849-0410-b77d-98878d47e9d5