indexStorage: fixed ALLDOCS complex queries, added QUnit tests