correct checking for valuetype of itemdomains