mr : factored out array interface
ar: got tests to compile and fail.