Value Domain Constraints #51

added field rule which is script returning true for input x when the input is valid. also instance of ValueDomain is passed to the rule and can be accessed by domain variable