Add static caching for Twig_Environment::getTemplateClass()