Axis-aligned boxes use top and bottom corners

Fixes issue #35.