[ticket/12382] Add template test for subloops inside events

https://tracker.phpbb.com/browse/PHPBB3-12382