g_variant_get_data_as_bytes: return a sub-bytes if necessary