`len` could contain side effects and may result in different values when substituted twice in the template expansion. Instead, capture the result of substituting `len` once. closes: #21538
contains
std/macrocache
nimPreviewSlimSystem