json: to_string() method accepts only std::map of metrics (with no allocator).
json: implementations of to_string() and HANDY_JSON_DUMP() methods moved out from header.