compiler crash on `len` of `varargs[untyped]`
### Description

```nim
template encodeList*(args: varargs[untyped]): seq[byte] =
  @[byte args.len]

let x = encodeList([22], 43)
```


### Nim Version

2.0.8

### Current Output

```text
nim c -r "/home/arnetheduck/status/nimbus-eth1/_exper/testit.nim"
.......................................................................................................................assertions.nim(34)       raiseAssert
Error: unhandled exception: renderer.nim(1313, 7) `n.len == 2` 3 [AssertionDefect]
```


### Expected Output

_No response_

### Known Workarounds

_No response_

### Additional Information

_No response_