fixed bug with iterating over a specified range using `{% for foo in bar [..N] %}`