Renamed operator error to err, due to external conflict.  Fixed extra comma bug in ScalaGenerator for AtomSeq.