Creates a SolutionFormatter rendering terms with termFormatter (defaults to pretty-printed expressions).