Allow to invalidate foreign pointers