Use an extension for aspatial support in GeoPackage.

Early commit of changes from upstream #5521
Escape field names. Upstream #5520