Make Twig HHVM compatible

Work in progress