Implemented logical & fixed normal validation in Dimensions.

Some minor fixes to validation in DataArray.