Document flatten_result() and deprecate flatten kwarg in fit_lc()