Use Array polyfill if needed.

Closes #19.