Merging: point and polygon serialization, tests