add iarr & tests for array shape's dims
add arrayerr.hpp
refactor array using new interface & storage framework