Added some rather specific helpers to CGContext.

Some clean up. Converting CG types to tuples.