harmonic: Add initial discretization test.

Fix Bresenham algorithm cell indexing.