Compilation error in template when accessing the fields of a tuple constant
### Description

The following program doesn't compile:

```Nim
type Point = tuple[x, y: int]

const Origin: Point = (0, 0)

template next(point: Point): Point =
  (point.x + 1, point.y + 1)

echo Origin.x      # OK: the field is visible.
echo next(Origin)  # Compilation error: the field is not visible.
```

### Nim Version

Nim Compiler Version 2.2.2 [Linux: amd64]
Compiled at 2025-02-06
Copyright (c) 2006-2025 by Andreas Rumpf

git hash: 6c34f62785263ad412f662f3e4e4bf8d8751d113
active boot switches: -d:release

The issue is also present in the development version.


### Current Output

```text
/tmp/z.nim(9, 10) template/generic instantiation of `next` from here
/tmp/z.nim(6, 9) Error: undeclared field: 'x'
```

### Expected Output

```text
Successful compilation.
```

### Known Workarounds

If the value is provided with explicit field names, the compilation is successful.

### Additional Information

The problem occurs only for constant tuples with explicit field names initialized with a tuple without explicit field names.