codegen: Simplify field initialization for struct types

Fixes bug 703996
girparser: use identifier prefix from GIR when appropriate

Fixes bug 731066