When editing a PostGIS layer that contains M and Z values, an error would occur indicating that a WKB function was being used instead of an EWKB Postgres function. That has been altered and an appropriate EWKB function is now being evoked when editing a PostGIS layer with M or Z values.