Add aliases for imported modules if they have enough uses.
Add test case. Fixes #46.