Fix imemo_env corruption under auto compaction
Previously, vm_make_env_each() did:
If compaction runs during (3), locals copied to env_body could be moved and the imemo_env could end up with invalid references.
Move (2) down so it reads references after potential movement.
Fix imemo_env corruption under auto compaction
Previously, vm_make_env_each() did:
If compaction runs during (3), locals copied to env_body could be
moved and the imemo_env could end up with invalid references.
Move (2) down so it reads references after potential movement.