bus: add support for serializing to gvariant

(deserialization is still missing, hence this is not hooked up to kdbus)
busname: improve condition check