BUG: Fix dates_from_range with length. Closes #775.