RF: was scaling by beta twice!
RF: obey user defined dtype for stim_arr