validate: change dt_parse() to return an enum indicating the kind of value that was...