Fixed bug in Polygon#getTransformedVertices()

If the length of localVertices was reduced via setVertices, worldVertices
would not be recreated to match the new length.