Validate datastore option "YEAR"

The YEAR option is a numeric value, so should be OptInt in order to go through validation.

[FixRM #8345]
[FixRM #8344]