Properly treat typedefs and classes contained in classes

for those we just need to fwd declare the containing class.
It is enough to trigger the incomplete type error.