fixed various bugs in util::buffer/string
added uv::loop