add copyToTempFile to filetester, use it in test_ledgerbil and test_ledgerfile; fuss with import ordering/line spacing in several files