Fix and clean up various malloc_stats_print() issues caused by 0ba5b9b6 (Add "J" (JSON) support to malloc_stats_print().).