Hack to make imported names safe.

This fixes a bug where imported identifiers with reserved names were
not being changed during codegen.
Move splitDots and prevent a non-exhaustive pattern match warning
Merge pull request #439 from maxsnew/safeNames

Hack to make imported names safe.