wp: add an assert to guard against id race conditions arising
wp: add an assert to guard against id race conditions arising
The WpGlobalProxy and WpGlobal should be 1-to-1, so check this before binding proxies from globals.
wp: fixup tmp_global exposition with removed objects
Consider invalid id as removed marker, similarly as in the preceding for loop. This condition should currently not be possible to hit in practice, but better to clean up.
Small leftover cleanups to !256 (merged). The assert should take care of the issue mentioned in !256 (comment 1154900) --- this is not triggered, but it's better to play safe and add a failsafe here to force always correct behavior.