Added IsArrInStr, cleaned up middlebox so it's now in the correct section (math, previously in tpa)