fixed model slicing to have at least 1d arrays in parameters and chisq, dof
Automatic style corrections courtesy of autopep8