Stricter dumper year bounds checking

This adds some more year bounds checking.

@matthewrmshin, please review.