gobject: Use value_is_valid

Avoid GValue transformation when we can, using
the new value_is_valid vfunc.

This is particularly useful for string properties,
where g_value_transform will make a copy of the string.
11 jobs for param-speedups2 in 12 minutes and 34 seconds (queued for 2 seconds)