Array Tests and Improvements

Tested the entire array module, provided revised implementations for some functions, and added some new functions.