Removed obsolete AllocatedPtr class.
Removed obsolete PtrType interface.