r444: more debugging output in CIGAR generation

Also found a potential issue which should not affect accuracy but may hurt
speed. Will investigate later.