fix Issue 9418 - Segmentation fault using only datetime and stdio.

At least glue layer should reject invalid array-operation, as same as NegExp, BinExp, PowAssignExp, and PowExp.
fix Issue 9458 - ModExp generates invalid code against array operands
Merge pull request #1628 from 9rnsr/fix9418

Issue 9418 + 9458 - Invalid array operation should be rejected in glue layer