The attached patch does two things:
* :filename option takes precedence of automatically determined names
(it was the case previously only for pathnames, and not for streams or functions).
* if stream is a file-stream, which means it's a pathname designator,
use file-namestring to get the filename.
--
With Best Regards, Stas.