exported HOFs all do thunk

Some functions have a method whose final arg is a function.
The do block idiom doesn't work for those methods, so alternate methods
were added (exported functions with a single function arg only).
Merge pull request #643 from JuliaStats/bythunk

exported HOFs all do thunk