If a structural layer appears in a hierarchy *below* a time-aligned layer, its layer type is TIMED instead of STRUCTURAL.
There is a workaround of setting the inherits-time attribute of the layer to be false, though that is rather counter-intuitive.
Should return structural unless the structural layer has children from which it can inherit.