RestrictToYear option in datepicker

Implements #389