valueType_self_adjust function

Self-adjust the valueType from a data dictionary or a dataset.