Corrects the behavior of equivalency assertions on arrays typed as object

There was an issue where arrays of types defined in the `System` namespace were handled differently.