R: fix refs to packages in SGM and GCLUST
R: rename some xdata functions, #784