Make select_all on query cache accept a Relation without binds.

`select_all` on `QueryCache` needs to know how to extract the binds from a `Relation`.

[fixes #14361]
[related #13886]

review @rafaelfranca