Validators now support serialization. Relates to #100.