Fixed crash in sgen when a large array can't be allocated.