Add the name of the surface to SurfaceVec.
Add prefix (the layer) to the name. Omit merging for one geometry.
The id vectors are not created as pointers anymore.
Added some checks to prevent crashes.