Switch length dists to lists with named elements; construct data
frames from length dists, read and write them.
Use BamFile() to avoid index reloading