Fix JSON conversion of multigeometries