T-API: attempt to fix pure virtual call in Mat::deallocate