Fix two typos in NppCommands.cpp.

Also more foreach loops.