clarify/normalize UB; add try_grow_inplace and try_shrink_inplace