make nested foreach over TypeTuple bodies into lambdas to avoid huge functions