[ticket/12100] Ensure enabled extensions are fresh in Twig environment

PHPBB3-12100
[ticket/12100] Re-order arguments in template environment constructor

PHPBB3-12100
Merge remote-tracking branch 'vsephpbb/ticket/12100' into develop