IS_CONSTANT_ARRAY replaced by IS_CONSTANT_AST and fixed integer casts