add ident and filename to web
Fixes issue in swig with destructor of std::map::const_iterator
need to keep a local copy of ident