Add some validators

See https://github.com/doctrine/DoctrinePHPCRBundle/pull/29