Restore previously loaded modules

If a module is required with stubs and then bogus is reset, a previously required module with the same name will not be restored.

Interestingly this behaviour seems to only occur in the browser. I have been struggling to write a test for this, but I have a WIP I'll show you.