Throw errors in Function functions

Closes https://github.com/jashkenas/underscore/issues/1576.
Could make a helper for these errors, related #1577