Add 'foreach' parsing test.

We might want to change the syntax from "foreach foo as i" to "foreach i in foo", but if we do we can change the test.
Always pretty-print the compound statement.

The point of the AST pretty-printing is to provide an accurate representation of the input, so don't elide the braces, even if they are unneeded.