Fix Issue 9570 - Wrong foreach index implicit conversion error
Merge pull request #3567 from lionello/bug9570

Issue 9570 - Wrong foreach index implicit conversion error