ast: Fix issue with boxes that cross zero longitude