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.