restore correct order to term_variables/2
@@ -4919,7 +4919,7 @@ pub(crate) fn term_variables(&mut self) {
let outcome = heap_loc_as_cell!(
filtered_iter_to_heap_list(
&mut self.machine_st.heap,
- seen_set.into_iter().rev(),
+ seen_set.into_iter(),
|heap, value| {
heap_bound_store(
heap,
