pmd: make ReportTree implement Iterable<RuleViolation>

With this change we can easily iterate over a ReportTree using the
for-each loop of Java 5 instead of using ReportTree.iterator().