Turns an SVG path into an array of its shapes.