fix bug in random displace

if slices were used with keyword srange then coords was not changed at
all
fix two bugs in adaptive_step_temperature

the reference energy wasn't initialized or updated correctly.