[spatialite] Improve field-type handling when changing attributes