UnSAMv2: Self-Supervised Learning Enables Segment Anything at Any Granularity