std.internal.scopebuffer: added inout for slices

update unittest

removed no-op cast

remove blank lines
Merge pull request #2518 from 9il/scopebuffer

Scopebuffer