fixed mono_assembly_foreach, it should use 'copy' variable