Finished with arrays

Basic work to get all array tests to pass. Checked in Chrome 26.0,
Firefox 20.0.1, IE 10.0.