SI-7592 Replace s.t.n.u.TreeSet with s.c.m.TreeSet

This means
- migrating usages from the compiler-specific implementation to the
  one in the standard library
- removing the now unused compiler-specific implementation
Merge pull request #2663 from soc/SI-7592

SI-7592 Replace s.t.n.u.TreeSet with s.c.m.TreeSet