[BUG] 8.1.0 Deleting and re-importing a UDT that has instances with overrides on tags do not remember override config

As in the title.
Example:
UDT definition
image

UDT definition tags
image

UDT instance
image

UDT instance overrides on tag ‘Flow Detected’

Delete UDT definition ‘Pump’ then re-import it back in.

UDT instance overrides now missing!

This issue has stumped me for a while, but I finally worked out how to produce it. Very annoying, as this basically stops me from using Json copy and paste, as using this method merges tag changes instead of overwriting them, meaning deleted tags in the import remain there…

Do you know of a way to detect overrides inside UDT tags using scripting at all?
Trying to find where overrides need to be taken off, but its quite a needle in a haystack when dealing with the entire project tag database,.

If a tag within a UDT instance has anything but name and tagType then it has overrides on it and those overrides are those other properties.

E.g.

{
  "name": "New Instance",
  "typeId": "_TEST/UDT 1",
  "parameters": {
    "Description": {
      "dataType": "String",
      "value": "asdasdasd"
    },
    "DeviceName": {
      "dataType": "String",
      "value": "asdasdasd"
    }
  },
  "tagType": "UdtInstance",
  "tags": [
    {
      "enabled": false, <--- This property is overridden from the template
      "name": "Tag 1",
      "tagType": "AtomicTag"
    },
....