Fix `get_nearest_water` bug and JSON rendering.

This fixes #30.