To support g_autoptr for those classes.
It will be used in gnome-photos#77 and newly-written applications.