Lots of improvements to C type importing, as well as some parsing fixes for namespaces