[Refactoring] checkNonAssignmentArrayOp
fix issue 13497 remained case

`AssignExp::semantic` should handle cases in both valid and invalid array operations.
fix Issue 12381 - [ICE] An internal error in e2ir.c while casting array ops
Merge pull request #4011 from 9rnsr/fix_arrayop

[REG2.065] Issue 13497 & 12381 - fix remaind e2ir ICE around array ops