Minor bugfix for Python spike queue with subgroups
Fix an "off-by-one" error in handling subgroups in the C++ spikequeue that could lead to segmentation faults.