Refactor inAny and notInAny to ExpressionUtils

This enables compile time checking of the parameters