Typed AST: fix check according to ITERATION_STATEMENT rule migration.