Fix: populate ids array in NativeArray with dense indexes first
Since array literals in Rhino creates instances of NativeArray with the
internal dense array containing literal elements, the patch changes
NativeArray.getIds to return ids array with dense indexes coming first and
indexes for elements added later after that.
git-svn-id: svn://10.0.0.236/trunk@152428 18797224-902f-48f8-a5cc-f745e15eee43