Automatically casting to array values that are passed using the "in" or
"not in" operators, fixes #2702