Regression in handling an external dep containing a unicode character classname

A recent change to dup detection broke compiling in our repo.  This one line change contains another 100 lines of tests to try and make sure we don't regress again.
I don't think they need to be alphabetical because system and dependencies get imported before local imports, but they should have a newline I think.