int allocate_field_id(string field)
Allocate a field id.
The (possibly wide string) field name wanted.
An allocated numeric id, or -1 if the allocation failed.