Adds support for passing functions to `assert` and `deprecate`

cc @rwjblue
Doesn't look like this is needed.