Method returns max depth of tree of subdata.
d3 requires recieving data to draw as a list of elements, rather than
a tree.  The flatten command does this, producing a list from a
StackedSubData tree, potentially duplicating entries until all
elements are at similar level.