LDEV-4868 Fix class cast issue when importing an old LD with ScratchieBy default scratchieItems were HashSet, but at some point they becameSortedSet, so we need to convert them.
LDEV-5219 Prevent incompatible state for schedule gateStop-at-preceding-activity option may prevent preceding activity fromcompletion, meaning that timer-from-previous-activity-completion willnever start.