Fixed bug in dataAccess which could not cope with 1D positions

retrieve data threw  an index out on bounds exception if the positions or extents arrays were 1D