datepicker-restricted-fix: datepicker had a bug in restricted logic that...

... broke restricted date ranges. fixes an issue mentioned in #647