Fix indexing issue in the pull code
When determining if the COM of pull groups should be computed,
the indexing range of group[] for each pull coordinate is one element
too long. In most cases this element is 0, so in which case it only
lead to extra, useless compute when a cylinder group is used.
Note that for dihedral geometry the extra element is actually dim[0]
in pull coord, which is 0 or 1, which is harmless.
No release note, since this did not affect results, it could only
cause a minor performance loss with cylinder pulling.
Fixes #2486
Change-Id: Ie5785181fbe28d8db57e37c58553ae3835e657b7