Right now, the XML report contains an anonymous
<ruleset> for each iteration of a foreach. It should instead
group all iterations in a tag with the variable's name, and
nest a tag for each iteration containing the variable's value.
This will require improving event broadcasting from foreach
(and moving responsibility for print var: value from
ForEach to PrintingListener while I'm at it).