Revise CompileEachloopCmd() to use LocalScalar() in place of TclIsLocalScalar().