[ticket/11435] Create new template filter option (cleanup)

This allows us to only run cleanup on the last run of template compilation
and not cleanup during event parsing

PHPBB3-11435
[ticket/11435] Enable spacing test as it should now pass

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

* EXreaction/ticket/11435-2:
  [ticket/11435] Enable spacing test as it should now pass
  [ticket/11435] Create new template filter option (cleanup)