checkDims3 function

Compare dimensions and dimnames of arrays