Storage flattening now legalizes types

Forces elements to be a multiple of 8-bits, and
inserts casts as needed. Fixes an outstanding bug
with vectorized loads of compute_root bool buffers.