default parameter initialize with template cause syntax error
### Description

```nim
import typetraits
type
  ColorRGBU* = distinct array[3, uint8] ## RGB range 0..255
  ColorRGBAU* = distinct array[4, uint8] ## RGB range 0..255
  ColorRGBUAny* = ColorRGBU | ColorRGBAU
  

template componentType*(t: typedesc[ColorRGBUAny]): typedesc =
  ## Returns component type of a given color type.
  arrayType distinctBase t

func `~=`*[T: ColorRGBUAny](a, b: T, e = componentType(T)(1.0e-11)): bool =
  ## Compares colors with given accuracy.
  abs(a[0] - b[0]) < e and abs(a[1] - b[1]) < e and abs(a[2] - b[2]) < e
```

### Nim Version

Nim Compiler Version 2.1.99 [MacOSX: amd64]
git hash: 793cee4de1934fd1f6271cf5fed46f01c5abb19b

### Current Output

```text
Error: in expression 'componentType(T)(1e-11)': identifier expected, but found 'componentType(T)'
```


### Expected Output

```text
no error
```


### Known Workarounds

_No response_

### Additional Information

code copy from https://github.com/SolitudeSF/imageman