ir: Add foreach statement.
parser: Parse foreach statements.