Change-Id: Ic1f68e6af658e94ef7922841dd3ad4c69551ef56
The code accidentally conflated `std::string::size_type` and `long unsigned int`. This was fine on 64bits machines where they are apparently the same in practice, but not on 32bits. Fix that by using `std::string::size_type` everywhere.
RewritingSink
Giving it the same semantics as `rewriteStrings`. Also add some tests for it