Iterator

Implementation of an iterator that goes thru a Component and all its sub-components in a tree (pre-order) traversal. A test case that demonstrates the usage is also included, along with wrapping to make these iterators accessible from scripting..
Templatized method definitions usually have to be in a header file (unless you can enumerate all the possible specializations ahead of time).