Optimized array.js

Optimization @mbostock chose from the `pull request` [1423](https://github.com/mbostock/d3/pull/1423)