Dynamic, non-persistent forms are funny. Even when you close or open the console, Skyrim destroys and creates few of them.
JContainers stores form identifiers. We don't watch form's delete event, so there is some 'fun' involved as Skyrim reuses identifiers. Thus there is some non-zero chance that some randomly spawned actor's identifier will be re-used by another actor or soulgem or anything. Also, there is relatively big chance you noticed the issue already.. or not yet
The new functionality intended to
- zero-out form identifiers in arrays and dictionary values
- erase {key, value} pair in JFormMap if the key is not valid
. Going to ship incoming enhancement in v3.2.5