make priors closures.

Also depend on assertthat instead of import, but no idea why that's suddenly needed