[ticket/10288] Test to make sure included templates have proper variable scope

PHPBB3-10288
Merge remote-tracking branch 'EXreaction/ticket/10288' into develop

* EXreaction/ticket/10288:
  [ticket/10288] Test to make sure included templates have proper variable scope