Fix upper/lower bound calculation in model constraint.

Backported from master.
Fixed a Schedule bug.

A combination of backwards generation and end-of-month convention
could result in missing or duplicated first dates.

Thanks to Nicholas Manganaro for the heads-up.
Update ChangeLog.