Bug 836138 - Fix a couple double array correctness bugs, r=jandem.