Basic template dependency detection for Jinja (Issue #511)