Adding IteratorAggregate support and a nice method for dumping XML. Fixes #1 Fixes #2