Improved optional parameter initialization in File.write and FileSystemEntry.visit