memory_input_stream: added explicit constructors from std::string,tstring
json.h: operator << (ostream, json_token) made public