CFTypeRef

Introduce a new type, CFTypeRef, to replace the use of Ptr in CoreFoundation code.