ensure that attached file is also imported when importing documents (re #216, re #225)