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

http://tracker.phpbb.com/browse/PHPBB3-10288