fix problem when adding large arrays to dynamicbytearray. found by kevin.