using caches for non-native types in the model-checker