Clean up Path#toShape().