[Util] Small perf improvements.
[Core] Pass by const in RootWindowsManager.