code: public void replace(int index, Object value) {
      values.set(index, value);
      this.path = null; // path is no longer valid if values are replaced
    }
docs: Replaces the value at {@code index} with the given {@code value}.
  
  @param index the {@code index} of the field to replace
  @param value an Object to store at {@code index}