Fixes #3568: When the primary query sets `asArray`, it is not respected by the `via` relational query