[Perf] When recalculating CUs on dom mutations reuse previously calcluated result of whether a CU is found to be contained in another

Plus, renamed `mainScrollableElement` to `mainContainer`.