Add method boundingBox to polygons.