Test valueToProperty with primitive boolean and number.