feedback request for refactoring of macros.hasCustomPragma
I am currently refactoring macros.hasCustomPragma. [Here is the PR](https://github.com/nim-lang/Nim/pull/11526), but when I try to compile tsqlite with that refactoring enabled I get the following error. Can you tell me what could have gone wrong?
```
tests/tsqlite.nim(49, 7) template/generic instantiation of `suite` from here
tests/tsqlite.nim(79, 8) template/generic instantiation of `test` from here
tests/tsqlite.nim(80, 5) template/generic instantiation of `withDb` from here
tests/tsqlite.nim(86, 39) Error: type mismatch: got <typeof(nil)>
but expected one of: 
proc dbValue(v: DbValue): DbValue
  first type mismatch at position: 1
  required type for v: DbValue
  but expression 'nil' is of type: typeof(nil)
proc dbValue(v: int | int32 | int64 | uint): DbValue
  first type mismatch at position: 1
  required type for v: int or int32 or int64 or uint
  but expression 'nil' is of type: typeof(nil)
proc dbValue(v: float): DbValue
  first type mismatch at position: 1
  required type for v: float
  but expression 'nil' is of type: typeof(nil)
proc dbValue(v: string): DbValue
  first type mismatch at position: 1
  required type for v: string
  but expression 'nil' is of type: typeof(nil)
proc dbValue(v: DbBlob): DbValue
  first type mismatch at position: 1
  required type for v: DbBlob
  but expression 'nil' is of type: typeof(nil)
proc dbValue(v: DbNull): DbValue
  first type mismatch at position: 1
  required type for v: DbNull
  but expression 'nil' is of type: typeof(nil)
proc dbValue(v: DateTime): DbValue
  first type mismatch at position: 1
  required type for v: DateTime
  but expression 'nil' is of type: typeof(nil)
proc dbValue[T](v: Option[T]): DbValue
  first type mismatch at position: 1
  required type for v: Option[dbValue.T]
  but expression 'nil' is of type: typeof(nil)
proc dbValue(v: bool): DbValue
  first type mismatch at position: 1
  required type for v: bool
  but expression 'nil' is of type: typeof(nil)
```