Update channel passing to use reference ids instead of stream ids

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
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)