Fix IsEntryPoint to only recognize `Run` as the program entry point when it is declared at package scope in the `Main` package, not when it appears inside a namespace or via C++ interop. Closes #6755