[C++11] Simplify some loops in Sema::CorrectTypo as range-based for loops.
Be a bit smarter about what nested name qualifiers to allow when
performing typo correction on very short (1 or 2 char) identifiers.
Remove some dead assignements found by scan-build