Pass also const CellRef& to save a lot of getCellByPosition() calls.

Change-Id: I86c89a05d263cada38ff54eaccf9ba39458db52e