Dynamically add fields to a collection constraint.

Added the ability to dynamically add fields to a collection constraint.