Fix an issue that could cause data corruption

Renaming items could sometimes cause loss of some fields in the serialized version because the database cache would not be cleared before reserializing, leaving the newly serialized renamed item with all standard values for its fields.