small fixes to history

- off by one error in digest panel creation at runtime
- ensure integer barcounts in simple transforms