Add test for indexeddb local backend functions
and fix bugs with mismatched array/string keys
It's not clear why all our key paths are arrays, even for single keys.
I suspect someone — probably me — misreading the docs many years ago, but
the queries need to match the object store creation.