[...]
Thanks for your answers regarding the second problem.
Changing the #set($results fixied it.
For the first one I found it myself.
It happen if you change the option 'xwiki.section.depth=' from '2' to
'1' in the xwiki.cfg.
Ah, ok, that's why. I can reproduce the problem when I change that setting.
Tracking the issue at
http://jira.xwiki.org/browse/XWIKI-10462
until I find a solution for it.
Cheers
Clemens