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 

As we check the type here and do conversion again, we may combine them into one: ``var ident = identList.LeftNode as IdentifierNode; if (ident != null) {...}``