Fixes the tree renderer

the list had to be cast to an arraylist for the iterator to work
kpmartin