Propagate arguments from toJSON to dump