Better array checking

Implements the following changes:

* Modified: arrays match only if they are exact matches.
* Modified: $unordered expects an array of the same size.
* New: $contains does what it sounds like (matches old behavior of $unordered).