[Refactoring] Remove dead code in ForeachStatement::semantic
fix Issue 12932 - Support @nogc for immediately iterated array literal
Merge pull request #3673 from 9rnsr/fix12932

Issue 12932 - Support @nogc for immediately iterated array literal
fix Issue 12934 - Strange newly implemented VRP behavior on foreach
Merge pull request #3674 from 9rnsr/fix12934

Issue 12934 - Strange newly implemented VRP behavior on foreach
Issue 12928 - Range check dropped for array[length]
Merge pull request #3671 from lionello/bug12928

Issue 12928 - Range check dropped for array[length]