query: use GArray for internal arrays instead of the now-deprecated GValueArray