Array<>::resize() pass-by-value fix
Array overrun fix in ScalarCodec, thanks Coverity