Check random access and array creation in CheckASTVisitor.