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

PHPBB3-13132