Add support for Twig's "last" filter