Some fixes in the sunriseset protocol and the gc library