OPAL-2278 - added more validation for mapping ranges and discrete values