First version supporting self-concatenation of added globals.

Also, hacky conversion from hbs arrayName.[0] to ftl arrayName[1].  Not sure if this is really right, though.