Store the field ident in the field definition itself.

This is how it's done with monster types/item types and everything else.

Removed the field_names array as the ident is now taken from the field definition.
Added a function to translate a string ident of a field type into the field_id value.