Added ArrayBuffer copying.