Fix topology geometries that were sampled like paths 3D geometry (fixes #878)