fix up constructor handling with interface types
@danw
Submitted by Dan Winship Link to original bug (#646742)
Description
Two patches to correctly recognize constructors that return interface types. Note that these may break existing programs that were relying on the fact that, eg, g_file_new_for_path() was exported as Gio.file_new_for_path() before.