Fix AreEqual for native types