fix(rootScopeDecorator): flush changes on apply
perf(rootScopeDecorator): common sub-expression
style(helper): add missing semicolon