Worked on namespacegen, dropped hierarchygen because it's not possible to forward declare nested classes anyway.