Simplified representative system handling
Currently the representative selection code may choose multiple representative systems, but only the first one is processed in the end. This merge request simplifies the selection of the representative system so that only one system may be selected. The selection now also depends on the type of calculation.