Compatability fix for pwt.jinja2js and the latest Jinja2 release.
Fix bug in Concat mode where we use loop.first or loop.last

We were confusing the operator precedence when instert these values in the
producing incorrect output.