stratified resampling for survival (fixes #120)