Fast dynamic typing for C++ with JSON and XML support