Fix crash on OS X in make_array()