[Bug 907982] New: Segfault with g_type_check_instance_cast