function ensureReduced(val) {
  if(isReduced(val)) {
    return val;
  } else {
    return new Reduced(val);
  }
}
This is for transforms that may call their nested transforms before
Reduced-wrapping the result (e.g. "take"), to avoid nested Reduced.