When contain() and query['contain'] = array(...) were used together the query['contain'] values where not respected. Fixes #3287