Implement dynamic tuple field offsets.

Save tuple field offsets for indexed fields in the tuple.
Merge tuple validation and initialization of field maps in the tuple.
Make formats work for an incorrect tuple.
Make tuple_field() inline.