(#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.
Merge pull request #475 from vmx/402-wonky-bbox

(#402) - Fix wonky bounding box calculations