Revert "Revert "gi: support freeing GObject return type everything""

This reverts commit 4d7b4f14be13630f0cfdaca7758b127ce4dc3ce7.

This is revert miss. Sorry.