First step of cleanup of useless code.
Amended curve_to to update the extent of the shape.
Renamed update_bounds to update_bounds_rect
Added new update_bounds as a utility method to work in terms of arrays of X and Y coords (essentially the body of the 'old' update_bounds method).  Now called from update_bounds_rect and curve_to.