Update bound-templates.js, misc. perf tweaks, and significantly reduce garbage being created.