Clean up imports.
Determine closure's containing module at construct time (for JIT).