Add an appropriate class to show if a node has shown/hidden children.

This could be used to render the node differently depending on whether or not child nodes are currently showing.