rewrite ambiguous functions better. Fixes #428
Merge pull request #429 from nicks/nick-hoist

only rewrite ambiguous functions if the warnings about them are on. For ...