cdx: add optimized versions of CDXLine for standard outputs,
make num retries default to default setting