Add support for getting line and polygon latLngs and a new toShapes method