`static openArray` backed by `seq` cannot be passed to another function
### Description

```nim
func f(a: static openArray[int]): int =
  discard

func g(a: static openArray[int]) =
  const b = f(a)

g(@[1,2,3])
```

### Nim Version

% nim -v
Nim Compiler Version 2.0.14 [MacOSX: arm64]
Compiled at 2025-01-06
Copyright (c) 2006-2023 by Andreas Rumpf

git hash: bf4de6a394e040d9810cba8c69fb2829ff04dcc6
active boot switches: -d:release


### Current Output

```text
/Users/etan/Documents/Repos/nimbus-eth2/test.nim(7, 4) Error: index out of bounds, the container is empty
```

### Expected Output

```text
Successful compile, empty output
```

### Known Workarounds

- Use `array` instead of `seq`
- Use runtime instead of compile time

### Additional Information

Both in `refc` and `orc`