pass size in bytes, not bits, to allocate_box_dynamic