Basic tests for array.js.  Don't merge this yet.

I've added a couple of tests for array.js, I'll need to add a lot more, especially for invalid inputs and stuff. This PR is just to get feedback and facilitate discussion around what sort of failure strategies we want and what kind of tests should be written and possibly, what features need to be added/removed to array.js.