Smart operators for smart Ptr (feature #2637)