binarize arbitrary js object (including TypedArray) into ArrayBuffer