Twig function extensions registration fixed