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

Fixes #1755

/cc @spicyj
I think we prefer having it inside `beforeEach` to avoid some caching problems that I forgot.