perf($rootScope): moving internal queues out of the Scope instances

Closes #9071