Change Connection.Groups to IList<T> and IConnection.Groups to ISet<T>.

#1282