fix Array#rindex
Merge pull request #795 from kostya/rindex

fix Array#rindex