Made the ScopedValueTreeFile use a TemporaryFile during save.