Make all object iterations defensive.