Fixed foreach bug.

No CFG nodes were saved after the foreach construction.