Handle namespace collision warnings

This handles namespace conflicts warning when you use a class that conflicts with different class names the namespace hierarchy.

@ke-yu @aparajit-pratap 

will not the warning be emitted on `a = DupTargetTest.DupTargetTest();` itself