Add bounds error for year dumping

When a year cannot be represented with the given number
of year digits (or in the absence of a signed year), then we
should raise an error.

@matthewrmshin, please review.