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

if the conversion is really necessary use size_t