Add snippet for checking reference count in Glib, GStreamer and C