clean up array a bit more

inline a bunch of functions, add some tests, and change the name of the
core memory