BUNSAN_STREAM_ENUM_ERRORS() style fixes.
tempfile refactoring.

{regular_file,directory}_{in_directory,in_tempdir,from_model}() implementation.