fix bugs in output of the mcmcdb_samples_* functions