Fix for incorrect file type assignment when importing from Galaxy.