Add isObject variable into Path and Query blocks


- Instead of using straightforward logic and checking
the type is (isModel || isMap), we checked it as
(!isArray && !isPrimitive).
A straightforward variant seems a little bit better looking.
Also, move the checking to a separate variable.

Change-Id: I485213f7c9afb93ee884699ad94401a31eb68ef0
Reviewed-by: Rym Bouabid <rym.bouabid@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit5c1442a076550b3894a52a20dea835865ea7622e
parent32ff0ff4426e36525ce1f2697dcfdd313a806eed
authorTatiana Borisova <tatiana.borisova@qt.io>
committerTatiana Borisova <tatiana.borisova@qt.io>
commit timeTue, 23 Sep 2025 15:07:42 +0000