Fix empty referenceIDs on subchannels

When subchannels are created the reference IDs are not being set, causing additional nesting to fail.