Stop processing with error if nonlinearities exist in endog/exog for linear model
Following the conversation in #1404 (closed), stop preprocessing with an error if a model is marked as linear but nonlinearities exist in the endogenous or exogenous variables.