typelib: need index for gtype names
Submitted by Colin Walters
Link to original bug (#575752)
Description
It turns out virtually every binding needs to do a lookup on GType for e.g. return values to avoid denaturing.
Related bugs: http://bugzilla.gnome.org/show_bug.cgi?id=554943 http://bugzilla.gnome.org/show_bug.cgi?id=564016
Bug 564016 helps, but we can do a lot better if we have a bsearch-able index. Basically, compute and append it to the end of the typelib as it is now.
This index can be added after typelib 1.0.