Fixed a small bug of using the wrong index for the number of neurons in a neurongroup (i insted of trg, where i was bound to the synapse group number at this instance).