Avoid spurious notifications about changes to activeStack, fixes #16726 !strict.   Also streamlined logic for detecting what part of stack has changed.