Added test which specify that the analyzer should be usable inside a NamedAnalyzer, and created a small but possibly rather hacky fix for it