Select the appropriate dwithin function for a MobilityDB type and a GSERIALIZED.
We need two parameters to cope with mixed 2D/3D arguments