allowing value types as right hand in "on" clause