code: private void writeArray(SerIterator itemIterator) throws IOException {
          output.writeArrayStart();
          while (itemIterator.hasNext()) {
              itemIterator.next();
              output.writeArrayItemStart();
              writeObject(itemIterator.valueType(), itemIterator.value(), itemIterator);
          }
          output.writeArrayEnd();
      }
docs: write list/set/array