Fixed lingering type issues with seam carving.