Port updates to dx_bed_to_spans from dx-toolkit.

See dnanexus/dx-toolkit@57fbe06, dnanexus/dx-toolkit@ae0ebe2.