array_intersect: allow passing list of references for convenience