fixed bug when ArrayBuffer is passed to fromSerialized