We also add a `type` field to the output objects (matching the field in `z_viewtransaction`), now that the output type can't be distinguished solely from the address encoding.