Make CUDAMatrix.reshape() consistently reshape all versions of the matrix

This makes `CUDAMatrix.reshape()` reshape all versions of the matrix (original, transposed, and the CPU copy if any).