XmlRpcPlugin: Improved robustness of functional unittest infrastucture + made a module-manipulating test-case to ensure plugin JSON code behaves even when it isn't available (see [7941] and [7957] as examples of what to avoid).