Cython/validators

Improve some trait validator functions