fix bug in number rendering
tweak the spacing in the bernoulli sequence
fix stacks when in test coverage mode

(most of the commit is a rather involved test case....)