Adapted SpatialiteGeometryColumns model to spatialite >= 4

See also:
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=switching-to-4.0
Fixed #23030 -- Properly handled geometry columns metadata during migrations

Thanks kunitoki for the report and initial patches.