tolerate smaller caravanserai if it helps fit
tolerate smaller caravanserai if it helps fit

Also fix multiple apparent algorithmic flaws. Deserves unit tests! With luck we'll very rarely use the smaller building.
Still repeatedly stymied by range's second argument being strictly <.

Naburimannu/beyaz-dag