fixes and improvements to Bounds

- use “lowest” instead of “min”
- make calcBounds() loop simpler
- unittestage