Optimizes toArray for v8
Merge pull request #276 from flightjs/patch-toarray

Optimizes toArray for v8