fix gt_ranges_union()