use source information from input
fix gt_ranges_union()