change assert to not assume a sorted list of arguments indices

[Bugzilla #1159](https://bugs.ecmascript.org/show_bug.cgi?id=1159)