support for contains any and all for arrays