pgpointcloud writer needs to pack the schema and the data when storing

The `drivers.pgpointcloud.writer` needs to pack the schema to remove ignored dimensions when storing both the schema and the data. It currently packs the schema, but does not pack the data, and it uses its own facilities instead of the ones that were recently introduced and added to `PointBuffer` and `Schema`.