object: Forward the type of the argument to gst_object_ref() if compiling with gcc
@slomo
Submitted by Sebastian Dröge Link to original bug (#794529)
Description
See commit message. Same change was done in latest GLib.
If we want to do the same, various code will have to be fixed up in our
repositories.