Fix bug in `parent` method

Ensure that the `parent` method operates over all elements in the set
and filters by the selector (when specified). Update methods that
utilize the method internally and documentation accordingly.