Don't use Array<Dynamic> here.
Add Arrays.indexOf and lastIndexOf.
Hack to fix SharedObject in Chrome Flash.