Fixed ref counting in CPointer::__del__

- Destructors of custom types are now called