For deep files, fix some subtle problems with differing per-channel formats

Was ok when all deep channels were the same data type, buggy for mixed types.