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