Add --no-implicit-reexport flag (#6562)
Adds a --no-implicit-reexport flag, intended for giving modules the same behavior as stubs for re-exporting their imports.
The goal is to make it possible to prevent bad transitive imports from causing dependency issues. And to make it easier to move things to a different module.