docs: public ArrayContainer toArrayContainer() {
      ArrayContainer ac = new ArrayContainer(cardinality);
      ac.loadData(this);
      if (ac.getCardinality() != cardinality) {
        throw new RuntimeException("Internal error.");
      }
      return ac;
    }