Improved centroid calculation when selecting a group of points.

Before it was just finding the average position of all selected points,
but this would result in oddly weighted transform positions depending on
the balance of the points. GetSelectionCenter() now uses a more balanced
centroid calculation.