Fixed bug in getdims test, no allclose in assertion
Check for array vs RDD before computing dims