Fix error code assignment in raw_parser
Fix and add tests for empty_base_optimization.
Update to SQLite 3.8.4.1