glib-2.0: don't use the container type's generic in static methods

Fixes bug 669816.