Allow a custom function named 'prior' as a value for 'mode_compute' option

Closes #507