Various fixes, some related to actual memory errors, some just being extra-careful.
Bugfix: other actually starts out equal to self if otherwise undefined in an event.
with(self), while necessary for parsing, is incorrect at the start of global scripts.