Ports can have a file type (currently only data and image)
Filetype attribute is now determined by examining the port widget.
Imported files now work with unsaved documents.