Got nested namespaces working in headers and wrote some reserved name replacement code.