Fixed startOfWeek() / endOfWeek() when crossing year boundary.