A Schema.
The index of the field to be replaced.
The newly added Field.
The newly allocated Schema that has field as the i-th field or null on error.
field
i