Add `complexVars` array, correct `removeStrings`,  and cleanup `isVarUsed` in build.js.