gi: support NULL return value returned from method without (allow-none) annotation
gstreamer: Gst::Element#flags returns object instead of raw integer