Add test cases that plain AVG(PKEY) gets a complex agg for an MP query but does not get one for an SP query (replicated table or "where partitionkey = ?").