Smarter check whether data changed when redrawing items. (See also #290)