Inside `fillTuple()` if I add `assert input.len == result.fields.len`, I get Error: attempting to call undeclared routine: 'fields'
I guess that's because it's an iterator. So I try import sequtils assert input.len == sequtils.toSeq(result.fields).len and I get Error: type mismatch: got (seq[RootObj], int) How do I get the number of fields in the result tuple?