Correct check for insanity of filters using tagged inputs, plus refactoring to support this. Also revealed a mistake in the additional testing support - have to sort the tags in the filters used by the test, as the tagged factories are shuffled around.