I'm not sure how to fix it. It is too abstract. However the problem is the following...
async function componentWrapper(name, opts) {
// here you let evaluate the `Number: {{0}}` code, but the `#each` haven't even started
const childValue = await jsreport.templatingEngines.waitForAsyncHelper(opts.fn(this))
// here you invoke `Footer` component with each
return component.call({
...opts.data,
child: childValue
}, name, opts)
}