as `refData().ptrObject` is repeating several times in different places, would it be better to create a `GVariant` method (or a separate function accepting `GVariant`) to return the hash value?