Added TSCollectionOperations to TSExpandingArray and refactored a bit.