Got wrong tensor when reshape after permute or transpose.
```nim
  var x = [[0, 1], [2, 3]].toTensor
  x = x.permute(1, 0).reshape(2, 2)
  echo x
  echo x[0, 1]
```

Expected:
```
Tensor[system.int] of shape [2, 2] of type "int" on backend "Cpu"
|0      2|
|1      3|

2

```
Actual:
```
Tensor[system.int] of shape [2, 2] of type "int" on backend "Cpu"
|0      1|
|2      3|

1
```