rowcache: support for limit clause

The previous rowcache implementation only supported "LIMIT 1"
for primary key fetches. This CL extends this suppport for
IN clauses and subqueries. It also supports limit clauses
with bind variables, which requires validation to be delayed
till the execution phase.