Tests and fix for SQLite datasource missing column

See https://github.com/mapnik/mapnik/issues/2579