Properly treat built-in types for fwd decls

and add some meaningful debug output.