Changes for perf branch

- Fix show instance for Ident.
- Add imports needed to import instances after the change on the perf branch.