Expanding year range based on the provided value.

This solves issues where editing a record with a year outside the year range would leave the year selection empty, as now it will expand to accomodate the value.