Ensure that resources and objects cannot collide in array identity hash