Rework trait dump output to match usual format of phobos json dumper