[ticket/13266] Enable twig dump function

PHPBB3-13266
Merge pull request #3099 from Senky/ticket/13266

[ticket/13266] Enabling twig dump function if DEBUG is defined