(#402) - Fix wonky bounding box calculations

The bounding box calculations of geometries wasn't really working.
This is fixed now. Thanks Calvin Metcalf for bringing it up and
doing the initial fixes.