Bug 1017418 (part 1) - Don't assume that nsTArray::SetCapacity() will result in exactly the requested capacity. r=froydnj.
Bug 1017418 (part 2) - Avoid more slop in nsTArray. r=froydnj.