Added indexOfObject for TSArray
New foreach with exit option