make ref array publicly accesible
fix BamIndexGenerator problems with alignments starting on a block boundary
extend test for BAM indexing