[Refactoring] Add helper function for array-op classification
fix Issue 13382 - [e2ir] compare string to int - leads to ICE in e2ir.c 1902
Merge pull request #3982 from 9rnsr/fix13382

Issue 13382 - [e2ir] compare string to int - leads to ICE in e2ir.c 1902