Check `ReactChildren.{map, forEach}` callback argument

Fixes #1755