Added rubyish array index methods.