Move array tests from run.lua into array.lua