enhance unit test for --list-toolchains
only list toolchain elements once in output of --list-toolchains (fixes #984)