Refactor printArea() code to handle GeometryCollections and MultiPolygons recursively.