girwriter: fix *Private type name for nested classes

Fixes bug 641559.
girwriter: fall back on gir_namespace if GIR name is not available