Add reference equality check to SetEquals methods.

The SetEquals methods are rather expensive, and it's a quick and super-effective check to compare reference equality between the two collections before engaging in the expensive work.
Add tests that cover the SetEquals reference equals optimizations.
Add reference equality check to SetEquals methods.