Quick hack to fix boxed primitive arrays