[GLib] Fixed some bugs in CodeExporter.