Dirty hack to avoid returning deleted typecodes that were cached after deletion.