correctly determine if cells can be merged

to simplifiy some code now all cells are required to have rowspan and
colspan properties (even hidden ones)