Fix testing value in Length, embedded namespaces
Import Validator, fix minor problems