Sets the value of atom to newval. Returns [old new], the value of the atom before and after the reset.