Remove usage of deprecated Twig features 

As the minimum version of Twig supported by Symfony 2.2 is Twig 1.11, we can safely remove the usage of deprecated features and make the bundle forward compatible with Twig 2.0 (see symfony/symfony#8675).