change the type of TArray indexes to ASTStmt