swig: add unexport() calls to be used by destructors in object api