Document Rect, Ptr, Refcountable, modify Ptr and Refcountable APIs to conform to standards and be slightly safer.