Migrate the code to insert module initFn from scopeResolve to docs.  Almost home.

Did something you changed result in not having to check for the rootModule, or did you just discover that the check wasn't necessary?