Removed new_offset parameter of allocate_to_dimensions.
Made traverse_to_dimensions not take old_offset or new_offset parameters.
Removed dumb variables in traverse_to_dimensions.
Made traverse logic not take offsets (which are always zero).