Validator cosmetics

Split out a `validate_dim_data` function, add some docstrings, make some cosmetic changes.