Add support for writing out the data properly when we're bracketing a value. This now works for single scalars across non-scalar outputs as well as for non-scalar inputs on non-scalar outputs.