Revised ucar.ma2.Range.compose to support more cases