rql #138635 add_type_restriction() fails if IN() function contains more than 2 types [validation pending]

Considering the following RQL query:

Any X WHERE X is IN (Person, CWUser, Company, Project)

If I use the Select.add_type_restriction() method on X to define that X is a Person, I get:

Any X WHERE X is IN (Person, Company)

instead of:

Any X WHERE X is IN (Person)
priorityimportant
typebug
done in0.31.4
load0.100
load left0.000
closed by#3e6b5f8cc4d2 fix add_type_restriction() implementation with IN() function (closes #138635)
patchfix add_type_restriction() implementation with IN() function (closes #138635) [applied]