[FIX] fixed a too short cigar count field, made read_sam/bam more robust against accidental misuse