fTools: fix MergeShapes and SpatialJoin