AVM2 interpreter and utils optimizations