Check types of user provided functions in bootstrap
Merge pull request #1527 from hypothesis/isolate-bootstrap-js-fixes

Implements PR suggestions for #1524