Add Channel::{fromBuffer,toBuffer} and tests