Add support to COPY export with Spatial objects. Thanks to Legendre Dominique for the great help to solve this problem.