fix a2s for large arraybuffers