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 

Ah ok, ive reverted this. 
The original comment you made was if both functions can be combined (GetResolvedClassName, GetAllMatchingClasses)

Not really, because this one GetResolvedClassName handles identlists specifically and will attempt to find matching classnames until the identlist is completely traversed to the left

GetAllMatchingClasses will simple return all classes in the table the matches the classname