Partial implementation of arc.cornerRadius.

Still need to implement corners for inner arcs and handle the case where there is not enough room to draw the corners (in which case the corner radius will be reduced as necessary). Related #1131.