Fixing reversing issue for the Array and addind code for the ArrayBuffer