[enh] handle simple string
[enh] handle simple with a simple name
[enh] import base dot
[enh] handle generic dotted names for import
[mod] refactoring, make tests more readable