Fix E_STRICT warnings in group creation code from using functions like array_shift() and array_pop() that expect references rather than results of array_keys(). See #5108.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7350 cdf35c40-ae34-48e0-9cc9-0c9da1808c22