fix Sample ref constructor for segv in resamplert