Make MLE and MAP more forgiving

(e.g., if you fail to pass a model or pass errors instead of a data
struct)