Make all direct attributes comparable in timeline.

Implements the following tickets:

- [2557](https://www.openproject.org/issues/2557)