DXProject: more informative error message in set_id.
Simplify dxid validation logic.