The main change here was to make it so that both `edit` and `selection` could either be a single edit/selection or an array of edits/selections. The reason to group these together is if you have multiple edits through which you want to track a single selection, or multiple selections you want to track through a single (or multiple) edits.