Change all checks that a layer is an instance of Layer into checks against BaseLayer. (LegendTree.__FillTreeLayer): Only add children to a branch if the layer supports classification.