use `contains` instead of `indexOf` in _.intersection. closes #1417