updated filters registration

Use Twig_SimpleFilter instead of Twig_Filter_Function (deprecated as of
Twig 1.12).