Adds $createObservableFunction to root scope (from #1).