Bug 982974 - AllocateArrayBufferContents doesn't initialize with the provided length in b2g18 (this only started in more recent branches), so do so manually afterward.  r=bustage, a=bustage