1) Allow for endogenous prior restrictions
2) trap cases where only very few parameter combinations provide unique saddle path solution
(cherry picked from commit 57eb9e12e5c82d8dba5b09254256f5bbf1e7c82d)