Added RecursiveChildIterator::prune() method.

This provides a means of skipping the recursion to children at a particular point of the hierarchy.
Fixed promotion of dynamic colour plugs to boxes.
Removed debug print statements.
Merge pull request #291 from johnhaddon/dynamicColorPlugPromotionFix

Dynamic color plug promotion fix