Fixing #4213 arrayIndexThenCheck and adding tests
Merge pull request #166 from last5bits/ticket4213

Fixing #4213 arrayIndexThenCheck and adding tests