Fix a couple of problems in code related to sqlite_stat4.