component statistics with masks
We have problems with recomputing statistics on fields with mask. When mask is added to field component statistics are not recomputed. If computed, shallow clones of components also clone this statistics - after adding to new field statistics is wrong. We should add hashes of masks in components to know if statistics are computed for a given mask. We should recompute statistics in add/setComponent add/setMask.