function ensureUnreduced(v) {
  if(isReduced(v)) {
    return deref(v);
  } else {
    return v;
  }
}
This is for tranforms that call their nested transforms when
performing completion (like "partition"), to avoid signaling
termination after already completing.