SI-8554 Two-arg remove throws exception on large count

SI-8554  Two-arg remove throws exception on large count

Made ArrayBuffer and BufferLike have same behavior, which is also consistent with single-arg remove.