Use canonical class name when importing as class.

`emitImports(Parent.Nested.class)` would write `import some.pkg.Parent$Nested;`. Even though it's valid import, having `.` instead of `$` is more natural and keeps compressing `some.pkg.Parent.Nested` occurrences correctly.