Fix indexing-related bugs in Synapses and add the corresponding tests.
Only do the output reporting if a report argument was given (regardless what was given, at the moment)