Add more array functions.

And some internal wrapper functions to get/set array index properties.