Remove usage of RARRAY_PTR in favor of rb_ary_entry

This improves performance significantly on Rubinius and also improves
compatibility with future CRuby 2.1 which introduces generational
garbage collection.

This results in these arrays not having to be rescanned in Rubinius and
not marked as shady in RBGCENC in CRuby 2.1. It is a good practice to
not use internal data structures here and also I've never seen this
change affect any real world performance out there.

For more discussion, also see:

https://bugs.ruby-lang.org/issues/8399

Pull-Request: https://github.com/couchbase/couchbase-ruby-client/pull/14
Change-Id: I1dde798acedc96df67464f79ea775671b92f25e9
Reviewed-on: http://review.couchbase.org/27483
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>