girparser: use identifier prefix from GIR when appropriate

Fixes bug 731066