sparse_disp: minor changes and bugfix for gridding

check if a tile contains more than one row/col before gridding it