gi: implement free function for array of GType