Added Write method to IPolygon to be able to write it's contoutrs to a stream.