Polygon parameter is tested + use templates to serialize vectors