Retain imports in externs files

For #344, ensures consistent behaviour when resolving instances from `.externs` vs `.purs` files. Also means files generated with `--no-prelude` will not have `import Prelude ()` added to the generated externs file, which was incorrect.