flatten typedefs over typedefs to underlying primitive types
fixes in type flattening
allow extraction of one selected type only