Misc AS2/AVM1 fixes

Addresses some of #454 problems