Add support for iterating by reference, Add a few array functions