Make CompoundValidator cloneable (fixes #34).