Add support for temp_files in the file name parameter to open of serialization streams.
In serialization merge sorter, save the last merge level for the outputting phase.