ImplAAFSourceReference::SetChannelIDs() passes the its
numberElements parameter directly to
_channelIDs.copyToBuffer(), which is expecting a byte
count not a number of elements. As a result, nothing is
set if you call IAAFSourceReference2::SetChannelIDs()
with less than 4 channel IDs, etc.
The fix appears to be to pass (numberElements *
sizeof(aafUInt32)) instead of numberElements.