Avoid some valgrind errors to be either detected to be supressed.
Fix nasty off-by-one error causing access beyond allocated memory
Avoid memory leak and handle out-of-memory in a forgotten case
when using valgrind, make sure we set some env vars in order to
have glib behave better and more "understandeable" for valgrind
speed up modify4 test - especially under valgrind