Generate destructor calls to type destory/unref methods