Revert "Fixed a bunch of bugs in CGContextCanvas and CGPath."

This reverts commit 7ab84ca607f937151449eb9418a89b31ccbd2a38 until I can figure out why it is breaking other things.