iterated on dimension iteration for complex numbers, also condensed some tests for row/column for ndarrays/complexndarrays