[ticket/12411] Expand vars of event: core.search_modify_tpl_ary

The current event: core.search_modify_tpl_ary isn't very powerful.

We can't even tell if we are in display:topics or display:posts mode.

Would be better to include as much vars as possible.

PHPBB3-12411