Reorganize functions in array.cxx to allow users to attempt making their own array and pass it in.