Add citation groups to references object