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