Improved validation for box constraints.
Add tests for data validators.