std.internal.scopebuffer: added inout for slices

update unittest

removed no-op cast

remove blank lines