The attached test program (with the bugs.res file) runs on the simultor and on android, but crashes on ios with a RunTimeException "decoding error". The exact nature of the crash depends on mysterious factors, including not crashing if the sequence of resource operations is perturbed slightly. [bugs.zip](https://github.com/user-attachments/files/21375670/bugs.zip)