Fix handling of the specialSiteLinkGroups setting

Also add some documentation.

Change-Id: I5004ee8e823ed0cd245793c61d54246a4805e618