Flatten the output shape array.

Flatten the output of MultiPoint, MultiLineString and MultiPolygon so that the
output array only contains MKShape classes.