Add optimized where iterator for arrays