addOrGet

Returns the global field number for the given field name. If the name does not exist yet, it tries to add it with the given preferred field number assigned, if possible, otherwise the first unassigned field number is used as the field number.