When importing a Space, or using an App, OIDs in QL expressions should get translated
Summary: Currently, in either of these scenarios, text and QL expressions are just copied uncritically. But they might contain OID stages, which are now almost guaranteed to be broken, because OIDs get remapped during import.
Conceptually, this is easy to fix: we just need to parse all of those expressions, find the OID stages, replace them with their remapped versions, and regenerate the expressions.
In practice, the big problem here is doing this reliably. In particular, regeneration of expressions, while it exists, hasn't been heavily tested for edge cases, and probably isn't entirely faithful.
That said, conceptually this isn't that hard. It's basically a recursive dive into all of the QL or Text properties, with the OID map as a parameter, rebuilding as it goes. It would become a new phase in the Remapper, probably near the end. It would be slow, since it requires a full dive into every Property, parsing all of them, but still probably not too bad in realistic practice.