Fix indexing nodes in maxOnline constraint.
Add test scenario which satisfies discrete restriction but fails with continuous restriction.