Added caching for get_num_daytype_in_year and get_holiday_balance.
Move to invalidate caches in its own function rather than doing it inline in the save method.