Standalone port of Ansible's extra Jinja2 filters
