Lambda indexOf() and has() were stricter than their function taking equi...

Lambda indexOf() and has() were stricter than their function taking equivalents like find(), which allow a superclass of T to be passed as the function parameter type and not just the exact class T or a subclass thereof. This relaxes that restriction to be the same.