makeCopyBag = bagEntryIter => {
  const result = makeBagOfEntries(bagEntryIter);
  assertCopyBag(result);
  return result;
}
@template {Key} K
@param {Iterable<[K,bigint]>} bagEntryIter
@returns {CopyBag<K>}