Cannot instantiate `static int` with computed value
### Description

```nim
type ArrayBuf*[N: static int, T = byte] = object
  buf: array[N, T]

func maxLen(T: type): int =
  sizeof(T) * 2

type MyBuf[I] = ArrayBuf[maxLen(I)]

var v: MyBuf[int]
```

### Nim Version

2.0.8

### Current Output

```text
testit.nim(7, 25) Error: cannot instantiate ArrayBuf [type declared in testit.nim(1, 6)]
got: <typeof(maxLen(I))>
but expected: <N, T>
```


### Expected Output

_No response_

### Known Workarounds

_No response_

### Additional Information

_No response_