fix dumper issue when `Set` is available (#811)