Added small [addChannel] type handling

that throws an error if the channel is not an object or a
non-standard/malformed definition