fix #5142

This teaches jl_new_bits how to create heap-allocated tuples from flat, stack-allocated
bits-type tuples. It also ensures that allocate_box_dynamic always marks the
julia type of its return values.