Moved functional definitions and fixed array1d_view tests