Fix TreeIter::new() failure by not creating temporary TreeIter object
Merge pull request #168 from oakes/treeiter_fix

Fix bug in TreeIter::new()