Added options parameter to twig API in BaseExtension