Regression from 2.0.8 to `version-2-0`/`version-2-2`/`devel`: `Error: type mismatch: got 'uint' for '0'u' but expected 'P = distinct uint'` with `distinct`-typed labels in `case`statement
### Description

```nim
type P = distinct uint  # uint, uint8, uint16, uint32, uint64 
let v = 0.P
case v
of 0.P: discard
else:   discard
```

### Nim Version

Builds:
```
Nim Compiler Version 2.0.8 [Linux: amd64]
Compiled at 2024-09-13
Copyright (c) 2006-2023 by Andreas Rumpf

git hash: 5935c3bfa9fec6505394867b23510eb5cbab3dbf
active boot switches: -d:release
```

Does not build:
```
Nim Compiler Version 2.0.9 [Linux: amd64]
Compiled at 2024-09-13
Copyright (c) 2006-2023 by Andreas Rumpf

git hash: 8bc8347f022982d81ae311223cc59580718b3c48
active boot switches: -d:release
```

`devel`:
```
Nim Compiler Version 2.1.99 [Linux: amd64]
Compiled at 2024-09-13
Copyright (c) 2006-2024 by Andreas Rumpf

git hash: 61e04ba0ed4b8c6567f4cfd5c48c2c2439c62371
active boot switches: -d:release
```

### Current Output

```text
/tmp/h.nim(4, 5) Error: type mismatch: got 'uint' for '0'u' but expected 'P = distinct uint'
```


### Expected Output

_No response_

### Known Workarounds

_No response_

### Additional Information

_No response_