Fix to detect dependency whether typedef of an opaque or expanding to anonymous access of a full declaration.