Enclose typemap code in a block to avoid problems when multiple std::string arguments are used