Adds a 'pk_field' parameter which can be used to proxy serialization and deserialization of arbitrary primary key values.