Reset hidden primitives and code mappings upon loading a new project