The $RC=SetOption("Explicit","On") avoids typos, not the Dim. By using Explicit, you have to declare your vars. Make a typo and you will get a message that the var is not declared. You can also declare it as global.
When you declare your variables, you will not have any orphans anymore, except maybe for return values of UDF functions. If you find other orphans, whell, they are declared but not used.