Encapsulate imports in the outline view in a container

Encapsulates imports in the outline in a synthetic container element.

This enables one to fold this container (which is the default). A long list of imports will therefor not bloat the outline.

Also fixes a missing null check for the import name, which should prevent an NPE when writing an import, where there is no valid text anywhere after the import keyword.