When possible, use the multi-column samples in sqlite_stat4 to estimate the number of index rows scanned by a query plan.
Fixes for builds without SQLITE_ENABLE_STAT4.