Fixed bug in ArrayBuffer serialization