Fix ArticleCount

it behaved incorrectly for tickets with several articles with the same timestamp
AgentTicketZoom: honor order and filter in pagination
AgentTicketZoom: Tweak for better pagination
Unit tests for SQLForList
Unit tests for filtering in ArticleContentIndex

and correct some small errors they caught