Detection for BGZF read bug + minor fixes.