Auto detect dependencies when using Array methods

`contains` `map` `mapBy` and `reduce`.

Fix broken tests for Array#contains and Array#isAny