code: private String adjustName() {
          String escaped = makeXmlName(name);
          if(isArray.peek()) return toSingular(escaped);
          return escaped;
      }
docs: Returns the name to be used as an element name
  by considering {@link #isArray}