Disable caching of imports (fixes #215), and make sure stateImported is never cleared