Fixed registration of twital extensions
Added an extension for improving compatibility with twig templates