remove bogus casts of arg to g_object_ref