Make sure that when testing array and objects that they're the same type.