Add __repr__ to Accumulator; fix bug in sc.accumulator