Updated constraint validator interfaces to take references.