Fixes #214 (plus similar issues)

Mark whether we’re currently parsing a cell row so that we can detect
if elements are in their proper place.