fix resource_dict_save for field values matching .format

Core resource fields with a value that happens to match the value of the format field (current or previously saved, depending on the field) are silently not saved to the database by resource_dict_save.