More sophisticated method of adding entries for all sub layers

Previously, the layer code looked for child layers by comparing label_ids. This was patched to handle interpretations, but with subparts we needed something a little more sophisticated.

Now, when a layer is added, this recursively looks at all children of the associated regulation node and adds layers as appropriate.