Fix a QIF transaction matching bug

We had a test for this, test_same_date_same_amount_transfer(), but it
was ill-designed and falsely passed most of the time.