Rewritten confidence intervals.

It adds another layer of complexity, and it doesn't look
particularly elegant, but it works, apart from AD/BC dates that
are currently broken.