bugfix and warning for models with dynare aux vars