Restoring #to_tempfile

Other modules were dependent on the existence of this method.
At a future point, this method should be removed in favor of a more
generalized Conversion method Tempfile(object)