clip: Avoid list corruption when grouping objects

We are currently iterating over a list that is modified in the same
method, we have to get a copy of the list, and iterate over the copy.
group: Implement a GESGroup class