[ticket/13132] Twig: Move the loops content to the root context

https://tracker.phpbb.com/browse/PHPBB3-13132

PHPBB3-13132
It could conflict with an other variable or with a css class or anything else if the same name is used. So if anyone has a better suggestion to rename the variable I'm listening.