optimize away individual loop vars, even if we can't remove them all
improve debug logging of emcc invocation
remove stack parameter from js optimizer traverse(), to avoid overhead when not needed