bugfix in visitWire: reloading corelibs would erase entity resulting in removing ports._instance prop