Fix destructor handling in CDataType for python 3/Capsules.

Bug spotted by the buildbot.