Connection bend-point snap to grid: snap to nearest grid point

* Round to nearest grid point
* Unit tests