Fixed a bug occassionally expressed bug in gossip learning. Also, debugging modifications that facilitated finding it.