[FIX] Adapted the sam/bam module to new stream modul.

`it` is rooted, so you can use !atEnd(it)