tests: plug leak in test case.
string: fix truncation for power of two growth/shrink.
utf8: use bson_string_t to build escaped json strings.
More win32 compat for the mongo c driver