Fixing #4213 arrayIndexThenCheck and adding tests
Merge branch 'master' of https://github.com/last5bits/cppcheck