CDK-349: Add Schema to Constraints.

This adds a Schema to Constraints so that Constraints can serialize
values in its Predicate set. The type and field checks now belong to
Constraints because this makes it more self-contained.