QGeoShape: fix serialization of QGeoPolygon and QGeoPath


There were two problems:
1. The deserialization method was still assuming that QList uses int to
   index the elements, so it tried to extract the polygon and path size
   as int, while it was serialized as qsizetype.
2. The QGeoPath didn't serialize and deserialize its width - it was
   simply lost.

This patch fixes both problems and adds some unit-tests to cover these
cases.

Pick-to: 6.2
Change-Id: If0ac87731b4481fde6b91e71fb121b3e916b0bfe
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commitb7fa0a29ff70dd3316941cf9ec9936d7c1a8434c
parentbbec5fcb3c0169cb2efddf84b862a9e03cd2b6d0
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeMon, 19 Jul 2021 09:54:35 +0200