rebuild_preserved_partitions() is NOT stateless yet!

While doing some cleanup it became apparent that the statement
  $partitions_have{$mapped_id}->{'new_id'} = $part_nr;
does indeed modify the original data. A warning has been added.