Make a couple of implicit casts explicit to fix compiler warnings.
Add missing "static" qualifier to functions in where.c.
Replace an erroneous SQLITE_OMIT_VIRTUAL_TABLE in vdbeaux.c with SQLITE_OMIT_WAL. Also fix some test script problems.
Fix two test script problems revealed by permutations.test.