Added unit tests for ticket comment editing and all the special cases uncovered so far, plus one additional (not yet observed in the wild):
* Unnumbered ticket comments
* Ticket changes where the `comment` field is missing
* Missing ticket comment edits
Also, added a unit test for, and fixed the ticket comment edit history, which was broken for >10 edits.
Closes #9001.