Implements multi-polygon serialization