timeline/elements: Adds support for grouping / ungrouping.