Compiler [amd64]: Fix bug in F_FOREACH. The initial foreach counter may be set to non-zero when foreach goes over a ranged array. If the initial foreach counter is larger than the size of the array F_FOREACH started indexing outside the array. Fixes [bug 7426 (#7426)]. FIXME: Is there a corresponding problem with negative ranges?