[Templating] Keeping dependencies for Twig and Smarty lazy-loaded so they dont need to be pulled in by composer in advance