Fix for User.groups undefined method memberOf.

The groups method of the User class would call @entry.memberOf. Normally this works fine, but sometimes the memberOf method is undefined (when the user in question is not a member of any groups). I changed it to instead use the [] method to read the memberOf attribute.