Fix regression when parameters are specified as Quantity's in p.range.