Fix goog.array.extend to work with large arrays.

Signed off by: yzhu@yahoo-inc.com (under Corporate CLA for Yahoo, Inc.)