Fix empty referenceIDs on subchannels

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

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)