Add Ptr::to_option method
Update to stop unsolicited copying and mark methods as unsafe
auto merge of #6604 : bjz/rust/ptr-to-option, r=brson