When multiple `type`s are being handled, add a `type` column to the output (both table and json).
When multiple
types are being handled, add atypecolumn to the output (both table and json).