gtkmodule: Ensure child gtypes are initialized before creating the template

Fixes bug 720282