make template application recursive through dicts and arrays
fixup build scripts; it now self hosts!