more exact BIC calculation

can be substantial for models with many parameters or datasets with
small numbers of datapoints