When editing a module and adding a package field, the new field is marked as the name key, in addition to the already marked field. This means that there are multiple name key fields which is totally wrong. This also means that the config file is screwed up by improperly formatted data, listing multiple name_key fields without comma separation.
In admin_module_fields.pdt change:
fields.find('input[name="service_fields\[name_key\]\[\]"]').val('false');
To
fields.find('input[name="' + field_type + '_fields\[name_key\]\[\]"]').val('false');