Merge passed-in :last-prim-kvs with opts map when building request in scan & query