Fixing update issues when primary key column non first value in column, GEOT-4746.

Also fixes some null geometry encoding issues in H2 and SpatiaLite.