fix reference update for multi-statement cells and modified/not-reevaluated cells, disable update for references in strings and comments