The picture says it all. I took a screenshot of the debugger so you can see the source template value, the resulting calculated JS, and the exception being thrown. This makes no sense to me. It's a very simple for loop. It's taken almost exactly from the examples in the documentation. I have spent over an hour trying various adjustments and this seems like a bug. What's going on?