Gdbus upstream fixes

Cherry-picked a number of gdbus fixes from upstream.