Bug 824473: OOM fixes for IonBuilder, r=jandem