Fix querying only `totalCount` on a function connection
Queries that only request totalCount
(and not nodes
/ edges
) on function (not table) connections in beta 8 were broken. We now have tests for this so it cannot recur. Thanks to @enisdenjo for reporting.