Fix endlessly repeating monthly recurring todos

There was a bug when completing monthly due_date recurring todos that would immediately create a new todo with the same due date as the old todo. Fixed and added a regression test. This bug is not present in v2.2.2.

I had to modify one of the other tests to get it working again, but I think the result was fine, see 4cd8688 for details.