Reduce template instantiations in forEach[Void]
Reduce template instantiations in forEach[Void]

Summary: Removes linear template recursion

Reviewed By: vitaut

Differential Revision: D39871731

fbshipit-source-id: 823b92eccbba79cc3b8a7b4d0b268c31a2f3c2f8

facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift