Corrected an overly-specific type annotation.

`contains` passes the argument on to `equals`, which accepts anything,
so there's no reason to require anything more specific here.

Thanks to Michael Davidson for the fix.
Set up the type annotation for `elementsAre` to allow array-like things.

This lets it be used with typed arrays, for example.

Thanks to Michael Davidson for the fix.