BUG: Fix the set and frozenset pretty printer to handle the empty case correctly

Fixes #3156