Fix printing of commas in Dict showcompact

This fixes a sloppy mistake I made in #5706.