Better alias handling for Twig extension