Resolve prefix when resolving typedef

I already talk about that issue months ago.

when using AA::BB::CC which AA a typedef to DD
currently the system try to resolve the type CC in AA::BB
it should at first try to resolve AA then AA::BB then AA::BB::CC