[ticket/12382] Allow nested loops in included files.

They have to reference the fully qualified loop name in BEGIN and END.

https://tracker.phpbb.com/browse/PHPBB3-12382