Revert "Merge pull request #1932 from 9rnsr/fix9987".

After the "fix", Module::moduleinfo might actually point to an
user-defined struct instead of object.ModuleInfo if the user
module is parsed first (e.g. because it is the root module).

An example for this is the added test case in compile1.d.